python3-pip: override Package/python3-pip/install rule
authorAlexandru Ardelean <[email protected]>
Fri, 19 May 2017 14:20:04 +0000 (17:20 +0300)
committerAlexandru Ardelean <[email protected]>
Fri, 19 May 2017 14:28:08 +0000 (17:28 +0300)
This is in essence fixes pip3.

That means pip3 will ship without Python byte-codes
for a while, until I'll find a better way to fix it.

I couldn't think of a not-very hack-ish way of doing it.

The only draw-back of this, will be that pip3 will run
a bit slower ; but that should be ok for a while.

Signed-off-by: Alexandru Ardelean <[email protected]>
lang/python/python3/Makefile
lang/python/python3/files/python3-package-pip.mk

index 584dcbb5f67ad7a75e99e462758d32b1423491cc..97c0f6efe634bf69c47df67e63f88203b84de3f8 100644 (file)
@@ -14,7 +14,7 @@ PYTHON_VERSION:=$(PYTHON3_VERSION)
 PYTHON_VERSION_MICRO:=$(PYTHON3_VERSION_MICRO)
 
 PKG_NAME:=python3
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
 
 PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
index b20a10f7913d3b3185fed0b3cc5cad760ad085a0..43e05f1c7576b4ebe2d95b01532eae4fb9b6b6c2 100644 (file)
@@ -12,7 +12,7 @@ $(call Package/python3/Default)
   DEPENDS:=+python3 +python3-setuptools +python-pip-conf
 endef
 
-define Py3Package/python3-pip/install
+define Package/python3-pip/install
        $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages
        # Adjust shebang to proper python location on target
        sed "1s/.*/#\!\/usr\/bin\/python$(PYTHON3_VERSION)/" -i $(PKG_BUILD_DIR)/install-pip/bin/*